
window.rootPath = (function (src) {
    src = document.scripts[document.scripts.length - 1].src;
    return src.substring(0,src.lastIndexOf("/") + 1);
})();

layui.config({
    base: rootPath + "lay-module/",
    version: true
}).extend({
    miniAdmin: "layuimini/miniAdmin",
    miniMenu: "layuimini/miniMenu",
    miniTab: "layuimini/miniTab",
    miniTheme: "layuimini/miniTheme",
    miniTongji: "layuimini/miniTongji",
    step: 'step-lay/step',
    treetable: 'treetable-lay/treetable',
    tableSelect: 'tableSelect/tableSelect',
    iconPickerFa: 'iconPicker/iconPickerFa',
    echarts: 'echarts/echarts',
    echartsTheme: 'echarts/echartsTheme',
    wangEditor: 'wangEditor/wangEditor',
    layarea: 'layarea/layarea',
})